<?php
 /**
 * 第一行简短描述，用在索引列表中
 *
 * @category   分类
 * @package  包
 * @subpackage  子包
 * @Author: yuanji <fenglangyj@139.com>
 * @DateTime:  14-4-25 上午10:08
 * @Copyright (c) 2012 http://www.sdf.cc All rights reserved.
 * @Version  $Id: h.php,v 1.0 uw Exp $
 * @Licensed ( http://www.apache.org/licenses/LICENSE-2.0 )
 */

namespace test;
phpinfo();exit;

/**
 * Class asdf
 * @package asdfs
 */
/**
 * Class asdf
 * @package asdfs
 */
class test {
    function __construct()
    {
    }

    /**
     * testdf  asdfasdfasdf
     * @param $adfasd
     * @return mixed
     */
    public function asdf($adfasd){
        log_message('ssss');
        return $adfasd;
    }

    function __clone()
    {
        // TODO: Implement __clone() method.
    }

    function __get($name)
    {
        // TODO: Implement __get() method.
    }
}



interface Actions {
    public function printName(); 	//输出 $name值
    public function printRights(); 	//输出$rights值
}
abstract class Person implements Actions {
    protected $id;
    protected $name;
    private $rights;   //
    abstract function login();
    abstract function logout();
    protected function __construct($_id, $_name, $_rights=0) {
        $this->id = $_id;
        $this->name = $_name;
        $this->rights = $_rights;
    }

    public function printRights() {
        echo $this->rights;
    }
}
class Staff extends Person {
    public function login(){
        echo __CLASS__.__FUNCTION__;
    }
    public function logout(){
        echo __CLASS__.__FUNCTION__;
    }
    public function printName() {
        echo $this->name;
        //parent
    }
}
